home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / ScaleP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  2.3 KB  |  108 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: ScaleP.h,v $ $Revision: 1.19 $ $Date: 92/05/14 12:56:18 $ */
  6. /*
  7. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  8. /*
  9. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  10. #ifndef _XmScaleP_h
  11. #define _XmScaleP_h
  12.  
  13.  
  14. #include <Xm/Scale.h>
  15. #include <Xm/ManagerP.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. /*  New fields for the Scale widget class record  */
  22.  
  23. typedef struct
  24. {
  25.    int mumble;   /* No new procedures */
  26. } XmScaleClassPart;
  27.  
  28.  
  29. /* Full class record declaration */
  30.  
  31. typedef struct _XmScaleClassRec
  32. {
  33.    CoreClassPart       core_class;
  34.    CompositeClassPart  composite_class;
  35.    ConstraintClassPart constraint_class;
  36.    XmManagerClassPart  manager_class;
  37.    XmScaleClassPart    scale_class;
  38. } XmScaleClassRec;
  39.  
  40. externalref XmScaleClassRec xmScaleClassRec;
  41.  
  42.  
  43. /* New fields for the Scale widget record */
  44.  
  45. typedef struct
  46. {
  47.    int            value;
  48.    int            maximum;
  49.    int            minimum;
  50.    unsigned char  orientation;
  51.    unsigned char  processing_direction;
  52.    XmString       title; 
  53.    XmFontList     font_list;
  54.    XFontStruct  * font_struct;
  55.    Boolean        show_value;
  56.    short          decimal_points;
  57.    Dimension      scale_width;
  58.    Dimension      scale_height;
  59.    Dimension      highlight_thickness;
  60.    Boolean        highlight_on_enter;
  61.    XtCallbackList drag_callback;
  62.    XtCallbackList value_changed_callback;
  63.  
  64.    int last_value;
  65.    int slider_size;
  66.    GC  foreground_GC;
  67.    int show_value_x;
  68.    int show_value_y;
  69.    int show_value_width;
  70.    int show_value_height;
  71.    int scale_multiple;
  72. } XmScalePart;
  73.  
  74.  
  75. /****************************************************************
  76.  *
  77.  * Full instance record declaration
  78.  *
  79.  ****************************************************************/
  80.  
  81. typedef struct _XmScaleRec
  82. {
  83.     CorePart       core;
  84.     CompositePart  composite;
  85.     ConstraintPart constraint;
  86.     XmManagerPart  manager;
  87.     XmScalePart    scale;
  88. } XmScaleRec;
  89.  
  90.  
  91. /********    Private Function Declarations    ********/
  92. #ifdef _NO_PROTO
  93.  
  94.  
  95. #else
  96.  
  97.  
  98. #endif /* _NO_PROTO */
  99. /********    End Private Function Declarations    ********/
  100.  
  101.  
  102. #ifdef __cplusplus
  103. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  104. #endif
  105.  
  106. #endif /* _XmScaleP_h */
  107. /* DON'T ADD ANYTHING AFTER THIS #endif */
  108.